package org.example.service.impl;

import org.example.dao.*;
import org.example.pojo.*;
import org.example.service.ClassService;
import org.example.service.SortService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SortServiceImpl implements SortService {

    @Resource
    private ClassroomDao classroomDao;
    @Resource
    private CourseDao courseDao;
    @Resource
    private CurriculumPlanDao curriculumPlanDao;
    @Resource
    private TeacherDao teacherDao;
    @Resource
    private ClassesDao classesDao;
    @Resource
    private ScheduleDao scheduleDao;

    @Override
    public List<Classroom> queryAllClassroom() {
        return classroomDao.queryAll();
    }

    @Override
    public List<Course> queryAllCurriculum() {
        return courseDao.queryAll();
    }

    @Override
    public List<Plan> queryAllCurriculumPlan() {
        return curriculumPlanDao.queryAllCurriculumPlan();
    }

    @Override
    public List<Teacher> queryAllTeacher() {
        return teacherDao.queryAll();
    }

    @Override
    public List<Classes> queryAllClass() {
        return classesDao.queryAll();
    }

    @Override
    public boolean InsertSchedule(Schedule schedule) {
        return scheduleDao.insert(schedule);
    }
}
